#!/usr/bin/env node
if(process.argv.length!==3){
  console.error('命令行格式：cmd base64_string');
  process.exit(1);
}

const buf = Buffer.from(process.argv[2],'base64');
const into = buf.toString('utf8').split(':');
if(into.length!==2){
  console.error('信息输入有误');
  process.exit(2);
}
console.log('usr',into[0]);
console.log('pwd',into[1]);

